package com.wj.springboot2demo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

//cloud注册到consul的application-name
@FeignClient("test-springcloud")
public interface FeignService {

    //服务对应的url
    @RequestMapping(value = "/springboot2/mysql")
    String hello(@RequestParam(name = "value") String v);
}
